package com.zrgk.bean;

import java.util.Date;
import java.util.List;

import com.zrgk.util.DateUtil;

/** 客户管理类
 * @author Administrator
 *邵嘉翌
 */
public class ConContentBean {
	
	private int contentId;             //主键ID
	private String consumername;//客户姓名
	private int sex;            //客户性别
	private Date birthday;      //客户生日
	private int type;           //客户类型 :0普通用户  1金卡用户  2银卡用户  3VIP用户
	private int state;          //客户状态:0未分配  1已分配
	private String telephone;    //手机
	private String officePhone; //办公电话
	private String email;       //电子邮箱
	private String homePhone;   //家庭电话
	private String contaceAddress;//联系地址
	private String remark;      //备注信息
	private EmpBean businessMan;    //业务联系人
	private Date writeTime;     //录入时间
	@SuppressWarnings("unused")
	private String writeStringTime;
	private int  KHstate;        //客户状态:1启用2禁用3流失
	private List<OrderBean> orders;//所有订单
    
	
	public int getKHstate() {
		return KHstate;
	}
	public void setKHstate(int kHstate) {
		KHstate = kHstate;
	}
	public Date getWriteTime() {
		return writeTime;
	}
	public void setWriteTime(Date writeTime) {
		this.writeTime = writeTime;
	}
	public int getContentId() {
		return contentId;
	}
	public void setContentId(int contentId) {
		this.contentId = contentId;
	}
	public String getConsumername() {
		return consumername;
	}
	public void setConsumername(String consumername) {
		this.consumername = consumername;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	
	public String getOfficePhone() {
		return officePhone;
	}
	public void setOfficePhone(String officePhone) {
		this.officePhone = officePhone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getHomePhone() {
		return homePhone;
	}
	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}
	public String getContaceAddress() {
		return contaceAddress;
	}
	public void setContaceAddress(String contaceAddress) {
		this.contaceAddress = contaceAddress;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public EmpBean getBusinessMan() {
		return businessMan;
	}
	public void setBusinessMan(EmpBean businessMan) {
		this.businessMan = businessMan;
	}
	public String getTelephone() {
		return telephone;
	}
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}
	
	
	public List<OrderBean> getOrders() {
		return orders;
	}
	public void setOrders(List<OrderBean> orders) {
		this.orders = orders;
	}
	@Override
	public String toString() {
		return "ConContentBean [contentId=" + contentId + ", consumername="
				+ consumername + ", sex=" + sex + ", birthday=" + birthday
				+ ", type=" + type + ", state=" + state + ", telephone="
				+ telephone + ", officePhone=" + officePhone + ", email="
				+ email + ", homePhone=" + homePhone + ", contaceAddress="
				+ contaceAddress + ", remark=" + remark + ", businessMan="
				+ businessMan + ", writeTime=" + writeTime + ", KHstate="
				+ KHstate + ", orders=" + orders + "]";
	}
	public String getWriteStringTime() {
		return DateUtil.dateToStr(writeTime);
	}
	
	


}
